//
//  XingCheng2JiTableViewCell.m
//  Trip
//
//  Created by dlios on 15-7-17.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "XingCheng2JiTableViewCell.h"

@implementation XingCheng2JiTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.images = [[UIImageView alloc] init];
//        self.images.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_images];
        [_images release];
        
        
        self.label1 = [[UILabel alloc] init];
        //        self.label1.backgroundColor = [UIColor greenColor];
//        self.label1.textAlignment = NSTextAlignmentCenter;
//        self.label1.textColor = [UIColor whiteColor];
        [self.contentView addSubview:_label1];
        [_label1 release];
        self.label2 = [[UILabel alloc] init];
        //        self.label2.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_label2];
        [_label2 release];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.images.frame = CGRectMake(5, 35, self.frame.size.width - 10, 150);
    
    self.label1.frame = CGRectMake(5, 5, self.frame.size.width - 10, 20);
    self.label2.frame = CGRectMake(5, 195, self.frame.size.width -10, 150);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
